package cn.swu.edu.dlx;

public class Student {

    public Student(){}
    public Student(String name, String id, String gender, int age) {
        this.name = name;
        this.id = id;
        this.gender = gender;
        this.age = age;
    }
    private String id;
    private String name;
    private String gender;
    private int age;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void showInfo(){
        System.out.println("-----学生信息-----");
        System.out.println("学号："+getId());
        System.out.println("姓名："+getName());
        System.out.println("性别："+getGender());
        System.out.println("年龄："+getAge());

    }
}
